from pyecharts.charts import Bar
bar = Bar()
x = ['葡萄','橘子','香蕉','榴莲','苹果','梨']
y = [123,32,56,99,210,100]
bar.add_xaxis(x)
bar.add_yaxis('水果',y)
bar.render('柱状图.html')
print("执行成功")
